package com.imooc.service;

import com.qiniu.common.QiniuException;
import com.qiniu.http.Response;
import org.springframework.stereotype.Service;

import java.io.File;
import java.io.InputStream;


public interface qiniuService {

    // 上传文件
    String uploadFile(File file) throws QiniuException;

    String uploadFile(InputStream inputStream) throws QiniuException;

    // 删除文件
    Response delete(String key) throws QiniuException;

}
